package com.syh.jn.scm.service.api.supplier.system;

import com.syh.jn.scm.dto.supplier.system.supplierAccount.SupplierAccountMto;
import com.syh.jn.scm.dto.supplier.system.supplierAccount.SupplierAccountSto;
import com.syh.jn.scm.dto.supplier.system.supplierAccount.SupplierAccountVo;
import com.syh.jn.scm.service.core.BaseService;

public interface SupplierAccountService extends BaseService<SupplierAccountSto, SupplierAccountMto, SupplierAccountVo, Long> {

	public void changeEable(Long accountId, Short enable);

	public void setRole(Long accountId, Long roldId);

	public SupplierAccountVo verifyAccountPassword(String loginAccount, String password) throws Exception;

	public void updataPassword(String loginAccount, String oldPassword, String newPassword) throws Exception;

	/**
	 * 绑定手机登录账号
	 * @param id
	 * @param phoneId
	 */
	void bindingLoginPhone(Long id,Long phoneId);
	/**
	 * 解绑手机登录账号
	 * @param id
	 */
	void untyingLoginPhone(Long id);
	/**
	 * 是否是管理员
	 *
	 * @param id
	 * @return
	 */
	public boolean identityAdmin(Long id);
}
